package com.example.common.constant;

public class ProductConstant {

    public enum  AttrType {

        ATTR_TYPE_SALE_ATTR(0,"销售属性"),
        // 基本属性
        ATTR_TYPE_BASE_ATTR(1,"规格参数");

        private Integer code;
        private String meaning;

        AttrType(Integer code,String meaning) {
            this.code = code;
            this.meaning = meaning;
        }

        public Integer getCode() {
            return code;
        }

        public String getMeaning() {
            return meaning;
        }
    }

    public enum  StatusEnum {

        NEW_SPU(0,"新建"),
        SPU_UP(1,"商品上架"),
        SPU_DOWN(2,"商品上架");

        private Integer code;
        private String meaning;

        StatusEnum(Integer code,String meaning) {
            this.code = code;
            this.meaning = meaning;
        }

        public Integer getCode() {
            return code;
        }

        public String getMeaning() {
            return meaning;
        }
    }
}
